Subscribe to Blog
Email Address
 
Search for Repeat Program returned 1 results.
Pages:(1) [1]

Repeating OKUMA CNC Lathe program number of times

January 6, 2011, 1:00 pm by Eldar Gerfanov (Admin)

If you want OKUMA Lathe to repeat program several times you can use a subprogram or a conditional GOTO statement.

On Many Okumas subprograms is an option you have to buy, so we have to use GOTO statement.

Code
O1 
CN=7 (NUMBER OF CYCLES TO REPEAT) 
CC=0 (CURRENT CYCLE)
N0
......
(part program)
......
CC=CC+1 
IF [ CC LT CN ] N0 
M2

Thats it 

This little code helps alot when using bar feeder and stuff like that.

 

Pages:(1) [1]
Sing In

© 2009-2022 Eldar Gerfanov. All Rights Reserved.
© 2009 Eldar Gerfanov. Materials on this site are presented as is and are mostly for educational use.

You may freely reproduce information presented herein without any consent from me, provided you include link to this site.
In case when i am not the copyright holder, you may want to contact proper owner of material. Anyway, they are freely available on the Internet.
If you hold the copyright right for any of the materials on this site and want them removed, please contact me here